package Userjava.Userpojo;
import Userjava.Userdao.bankServer;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import javax.annotation.Resource;
/**
 * tx包 就是Spring的事务包
 *
 * */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContest.xml")
public class Test_Spring_tx {
 @Resource(name="bankServer")
   private bankServer bankServer;
   @Test
   public void test(){
       bankServer.transfer("李四","张三",100);

   }
}
